Part Number Hot Search : 
GPP20M DTA115EM 1240D IN74ACT SCA1020 94518 CS4961XX ADN466
Product Description
Full Text Search
 

To Download SP2-433-160 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 EW N
Radiometrix
Hartcran House, 231 Kenton Lane, Harrow, HA3 8RP, England
Tel: +44 (0) 20 8909 9595, Fax: +44 (0) 20 8909 2233
Issue 2, 09 February 2007
SP2-433-160
UHF SpacePort Transceiver
The SP2-433-160 is a highly integrated intelligent transceiver module, which enable a radio network/link to be simply implemented between a number of digital devices. The module combines a UHF radio transceiver and a 160kbps Fast Radio Packet controller (FRPC).
SAW controlled FM transmitter and superhet receiver Reliable 50 meter in-building range, 200m open ground Built-in diagnostic / debug test modes Complies with ETSI EN 300 220-3 Complies with ETSI EN 301 489-3 Single 5V supply @ < 25mA 160kbps half duplex Free format packets of 1 - 60 bytes Packet framing and error checking are user transparent Collision avoidance (listen before transmit) Direct interface to 5V CMOS logic Power save mode
SP2-433-160
INTRODUCTION The SP2 is a self-contained plug-on radio port which requires only a simple antenna, 5V supply and a byte-wide I/O port on a host microcontroller (or bi-directional PC port). The module provides all the RF circuits and processor intensive low level packet formatting and packet recovery functions required to inter-connect an number of microcontrollers in a radio network. A data packet of 1 to 60 bytes downloaded by a Host microcontroller into the SP2's packet buffer is transmitted by the SP2's transceiver and will "appear" in the receive buffer of all the SP2's within radio range. A data packet received by the SP2's transceiver is decoded, stored in a packet buffer and the Host microcontroller signalled that a valid packet is waiting to be uploaded.
transmit / receive download
download
HOST
upload
figure 1: SP2 + Host -controller
SP2
upload
HOST
Radiometrix Ltd, SP2 data sheet
page 1
GND
22
Vdd 1K
TX/RX data
VTX
PREAMBLE GENERATOR SERIAL 12 8
TXD/AF (7) 10K
220nF
TX/RX switch Buffer 10k
PREAMBLE TX
RX RX Data clk TX clk
44 kHz 2nd order LPF
8
RESET
16
8
RXA RXR CRC GENERATOR/ CHECKER TXA TXR
12 13 14 15
Pre amplifier
DATA SLICER SIGNAL (10)
DETECTOR
RX FRAME SYNC. DETECT
Radiometrix Ltd, SP2 data sheet
418 MHz SAW controlled 1st Local oscillator
nd
2 local oscillator 15.82 MHz
RX STATE CONTROLLER
8
AF
nd
SAW band pass filter 2 mixer IF amplifier demodulator 1 mixer
22p 330R 16.384MHz
st
Buffer
OSC2 Fosc/256 PARAMETER / DATA STORE 63 BYTES E PROM
2
TX
D3 D2 D1 D0
TX/RX Supply Switch
CLOCK OSCILLATOR
20 19 18
8
Address 01H - 3FH
17
22p
OSC1
BiM2-433-160 UHF Module
GND
Space Port Controller
side view side view 4 mm top view
0889
!
GND Vcc D3 D2 D1 D0 RESET TXA RXR RXA
RF GND 1 Antenna 2 RF GND 3 RX Select 4 TX Select 5 GND 6 TXD/AF 7 NC 8 NC 9 SIGNAL10 GND 11 36.5mm 39 mm
22 21 20 19 18 17 16 15 14 13 12
23 mm
recommended PCB hole size: 0.9 mm pin pitch: 2 mm
page 2
figure 3: Pin out and physical dimension
1. FUNCTIONAL DESCRIPTION On receipt of a packet downloaded by the Host, the FSP2 will append to the packet: Preamble, start byte and a error check code. The packet is then coded for security and mark:space balance and transmitted through the BiM2 Transceiver as a 160kbps synchronous stream. One of four methods of collision avoidance (listen before TX) may be user selected. When not in transmit mode, the SP2 continuously searches the radio noise for valid preamble. On detection of preamble, the SP2 synchronises to the in-coming data stream, decodes the data and validates the check sum. The Host is then signalled that a valid packet is waiting to be unloaded. The format of the packet is entirely of the users determination except the 1st byte (the Control Byte) which must specify the packet type (control or data) and the packet size. A valid received packet is presented back to the host in exactly the same form as it was given. To preserve versatility, the SP2 does not generate routing information (i.e. source/ destination addresses) nor does it handshake packets. These network specific functions should be performed by the host. Additional features of the SP2 include extensive diagnostic/debug functions for evaluation and debugging of the radio and host driver software, a built in self test function and a sleep mode / wake-up mechanism which may be programmed to reduce the average current to less than 100A. The operating parameters are fully programmable by the host and held in EEPROM, the host may also use the EEPROM as a general purpose non-volatile store for addresses , routing information etc. 1.1 OPERATING STATES The SP2 has four normal operating states: * * * * IDLE / SLEEP
HOST TRANSFER TRANSMIT RECEIVE
IDLE/SLEEP The IDLE state is the quiescent/rest state of the SP2. In IDLE the SP2 enables the receiver and continuously searches the radio noise for message preamble. If the power saving modes have been enabled the SP2 will pulse the receiver on, check for preamble and go back to SLEEP if nothing is found. The 'ON' time is 2.5ms, OFF time is programmable in the SP2's EEPROM and can vary between 22ms and 181ms. The TX Request line from the Host is constantly monitored and will be acted upon if found active (low). A TX Request will immediately wake the SP2 up from SLEEP mode. HOST TRANSFERS If the host sets the TX Request line low a data transfer from the Host to the SP2 will be initiated. Similarly the SP2 will pull RX Request low when it requires to transfer data to the Host (this may polled or used to generate a Host interrupt). The transfer protocol is fully asynchronous, i.e. the host may service another interrupt and then continue with the SP2 transfer. It is desirable that all transfers are completed quickly since the radio transceiver is disabled until the Host <> SP2 transfer is completed. Typically a fast host can transfer a 60 byte packet to / from the SP2 in under 1ms.
Radiometrix Ltd, SP2 data sheet
page 3
TRANSMIT On receipt of a data packet from the host, the SP2 will append to the packet - preamble, frame sync byte and an error check sum. The packet is then coded for mark:space balance and transmitted. A full 60 byte packet is transmitted in 6ms of TX air time (60 data bytes @ 160kbps + 1.75ms). Collision avoidance (Listen Before Transmit-LBT) functions can be enabled to prevent loss of packets. Data packets may be sent with either normal or extended preamble. Extended preamble is used if the remote SP2 is in power save mode. Extended preamble length can be changed in the EEPROM memory. RECEIVE On detection of preamble from the radio receiver, the SP2 will phase lock, decode and error check the incoming synchronous data stream and if successful. The data is then placed in a buffer and the RX Request line is pulled low to signal to the host that a valid packet awaits to be uploaded to the Host. An in-coming data packet is presented back to the host in the same form as it was given.
Radiometrix Ltd, SP2 data sheet
page 4
2 THE HOST INTERFACE 2.1 SIGNALS It is recommended that the SP2 be assigned to a byte wide bi-directional I/O port on the host processor. The port must be such that the 4 data lines can be direction controlled without affecting the 4 handshake line. pin name TXR TXA RXR RXA D0 D1 D2 D3 pin number 15 14 13 12 17 18 19 20 pin function TX Request TX Accept RX Request RX Accept Data 0 Data 1 Data 2 Data 3 (4) (5) (6) (7) I/O I/P O/P O/P I/P Bi-dir Bi-dir Bi-dir Bi-dir description Data transfer request from HOST to SP2 Data accept handshake back to HOST Data transfer request from SP2 to HOST Data accept handshake back to SP2 4 bit bi-directional data bus. Tri-state between packet transfers, Driven on receipt for Accept signal until packet transfer is complete.
notes: 1. The 4 Handshake lines are active low 2. The 4 Data lines true data 3. Logic levels are 5V CMOS, see electrical specifications 4. Input pins have a weak pull-up internally RESET The Reset signal, may either be driven by the host (recommended) or pulled up to Vcc via a suitable resistor (10k). A reset aborts any transfers in progress and restarts the Packet Controller. HOST DRIVEN RESET Minimum low time: 1.0 s, after reset is released (returned high). The host should allow a delay 1ms after reset for the SP2 to initialise itself During this delay the host must hold TXR high (unless DIAGNOSTIC MODES are required) and RXR signal should be ignored.
SP2-433-160
D0 D1 D2 D3
Host Processor
BiM2-433-160 Transceiver
RESET
figure 4: Host to SP2 connection
Radiometrix Ltd, SP2 data sheet
page 5
2.2 HOST TO SP2 DATA TRANSFER Data is transferred between the SP2 and the HOST 4 bits (nibbles) at a time using a fully asynchronous protocol. The nibbles are always sent in pairs to form a byte, the Least Significant Nibble (bits 0 to 3) is transferred first, followed by the Most Significant Nibble (bits 4 to 7). Two pairs of handshake lines, REQUEST & ACCEPT, control the flow of data in each direction:TX Request & TX Accept: RX Request & RX Accept: control the flow from the HOST to the SP2 (download) control the flow from the SP2 to the HOST (upload)
A packet transferred between host and SP2 consists of between 1 and 61 bytes, the first byte of the packet is always the control byte. There are two classes of HOST SP2 transfers: 1. Data Packets: 2. Memory Access: To the transmitter or from the receiver To or from the SP2's memory
0
0
0 Byte Count (1-60)
Packet To Transmit
SP2
SP2
Received Packet
3 data byte nd 2 data byte st 1 data byte control byte
rd
0
7
0
6
Byte Count (1-60)
0
6 bits
figure 5: SP2 Host data transfer
Radiometrix Ltd, SP2 data sheet
page 6
2.2.1 WRITE A BYTE TO SP2 The sequence for a byte transfer from the Host to the SP2 (i.e. TX download) is asynchronous and proceeds as follows: 1. 2. 3. 4. 5. HOST asserts TX Request line low to initiate transfer Wait for SP2 to pull TX Accept low (i.e. request is accepted) Set data lines to output and place LS nibble on the data lines Negate TX Request (set to 1) to tell SP2 that data is present. Wait for SP2 to negate TX Accept (i.e. data has been accepted)
Repeat steps 1-5 with MS nibble.
transfer request data present
TX-REQUEST
(TXR)
request accept
data has been read
TX-ACCEPT
(TXA)
data may change
DATA
(4 LINES D0-D3)
LS nibble least significant nibble 1 byte
MS nibble most significant nibble
figure 6: TX download timing diagram
Notes: * The data bus must not be set to output until step 3. i.e. after the SP2 has accepted the request. The bus may be left as an output until the entire packet has been transferred to the SP2, it should then be set back to input (default state). * The SP2's normal response time to the initial TX Request may be up to 1ms, thereafter, for the duration of the packet, the response will be fast. * The SP2 will ignore a TX Request from the Host while it is receiving a packet from the radio. If the incoming packet fails it's error check the SP2 will respond to the TX Request as normal, i.e. the TX Accept from the SP2 will be delayed until the incoming packet has finished. If a valid packet is received this must be uploaded to the Host before the SP2 can respond to the Host's TX Request. Thus an RX Request will be signalled to the Host and not the expected TX Accept and the Host must upload the incoming packet before the TX packet can be downloaded. The TX Request should be left asserted (low) during the upload. The SP2 will respond as normal after the upload is completed. * For the above reason it is often easier to use RX Request to trigger a HOST interrupt and upload the SP2 to the HOST under interrupt control. * See Appendix B and C. for example SP2 driver subroutines.
Radiometrix Ltd, SP2 data sheet
page 7
2.2.2 READ A BYTE FROM THE SP2 The sequence for a byte transfer from the SP2 to the HOST (i.e. RX upload) is asynchronous and proceeds as follows :1. 2. 3. 4. SP2 will assert RX Request line low to initiate transfer Host pulls RX Accept low (i.e. request is accepted by the host) SP2 will turn on it's bus drivers, place LS nibble onto data lines and negate RX Request (set to 1) Host reads the data and negates RX Accept (i.e. data has been accepted)
Repeat steps 1-4 with MS nibble.
transfer request
data present
RX-REQUEST
(RXR)
request accept
data has been read
RX-ACCEPT
(RXA)
data may change
DATA
(4 LINES D0-D3)
LS nibble Least significant nibble 1 byte
MS nibble most significant nibble
figure 7: RX upload timing diagram
Notes: * The SP2 will turn off it's data bus drivers after the entire packet has been uploaded to the HOST. * See Appendix B and C. for example SP2 driver subroutines.
2.3 HOST <> SP2 PACKET FORMAT 2.3.1 THE CONTROL BYTE The first byte of a SP2 <> HOST packet transfer is always the CONTROL BYTE. This byte is used to control the transfer and contains information about the type of packet, number of bytes to be transferred, memory address, read/write bit etc. Bit 7 of the control byte is the Packet Type flag, PT, it determines the class of transfer and the interpretation of the other bits in the control byte.
Radiometrix Ltd, SP2 data sheet
page 8
2.3.2 SENDING AND RECEIVING DATA PACKETS Data packets are sent to / received from remote SP2's. They begin with a control byte with bit 7 cleared and may be of variable length and contain up to 60 bytes of user determined data.
PT
7
WU0
6
BC5
5
BC4
4
BC3
3
BC2
2
BC1
1
BC0
0
BC5 - BC0 - 6 Bit Byte Count
6 Bit byte count (includes itself), byte count must be in the range 1 to 61 (01 to 3D HEX)
WU0 - Preamble Control
WU0 Function EEPROM Parameter location 01H determines time
0 1
Normal preamble
Power save wake-up location 02H determines time
PT - Packet Type
0 = Data Packet
figure 8: Control byte for data packet
The remainder of the bytes in the data packet are of the users determination. The packet would usually be made up of a number of fields consisting of some but not necessarily all of the following :Source address / ID Destination address / ID System ID Packet count Encryption / Scrambler control Additional error check codes ( The SP2 performs it's own error checks) Routing information ( for repeaters) Link control codes (connect/disconnect/ACK/NAK etc.) Data field 2.3.3 SP2 MEMORY ACCESS The SP2's EEPROM memory can be accessed by setting bit 7 in the control byte. Bit 6 (R/W flag) defines a memory read or write. The bits left define the address.
Read from memory
1
7
Write to memory
Control Byte 1
7
0
6
Address (6 bit)
0
Data Byte 1
6
Address (6 bit)
0
Control Byte
SP2 SP2
Data byte
7 1
0
7 6
Address (6 bit)0
0
figure 9: SP2 memory access
Radiometrix Ltd, SP2 data sheet
page 9
SP2 Memory READS: Host issues just the control byte, with bit 6 (W/R) cleared, bit 7 (PT) set and the memory address. The SP2 will respond with 2 bytes, the first is a control byte which is an echo of the control byte just issued by the host, this is useful if the host is using an interrupt handler. The 2nd byte is the memory contents. SP2 Memory WRITES: Host issues 2 bytes, the first is the control byte with bit 6 (W/R) set, bit 7 (PT) set and the memory address. The 2nd byte is the data to be written. The SP2 does not give a response to memory writes.
PT
7
W/R
6
A5
5
A4
4
A3
3
A2
2
A1
1
A0
0
A5 - A0 - 6 RPC Memory Address R/W - Memory Read / Write
R/W Function
0 1
Read from RPC's memory Write to RPC's memory
PT - Packet Type
1 = Memory Transfer Packet
figure 10: Control byte for memory access
Notes Memory writes to locations 01 to 3F, write to the non-volatile EEPROM in the SP2. The EEPROM has a limit of 100,000 write cycles therefor it's use must be restricted to infrequently changed data. The SP2 only writes to the EEPROM when instructed to by the HOST. Each byte takes 10ms to write. To prevent accidental/spurious writes to EEPROM the host must set the WE bit in SWITCHES prior to EACH byte to be written. We recommend that the host performs a read/verify after each byte write to EEPROM. The above does not apply to any memory reads nor to writes to SWITCHES (address 00h).
Radiometrix Ltd, SP2 data sheet
page 10
3.0 SP2'S SWITCHES SWITCHES is memory location 00h in RAM, it contains 8 flags which are used to determine the SP2's operation. On SP2 reset, power-up or watchdog Time-Out it is loaded from location 08h (in EEPROM). The default value is 00 hex - this is all functions deselected.
PS1
7
PS0
6
HTO
5
RTO
4
WE
3
ST
2
LBT
1
DBT
0
LBT & DBT - Collision Avoidance
LBT DBT Function Immediate TX, no channel check Fixed delay TX, no channel check Immediate TX after channel clear Random delay TX after channel clear
0 0 1 1
0 1 0 1
ST - Self Test Flag WE - EEPROM Byte Write Enable RTO - Radio Time Out
No Time Out Time Out after > 2.9 S of plain preamble
HTO - Host Time Out
0 1
No Time Out Time Out if no reply from host after 2.9S
PS1 & PS0 - Power Saving
PS1 PS0 Function
0 0 1 1
0 1 0 1
Continuous Power Save Sleep Off
figure 11: Switches
3.1 PS0 & PS1 - POWER SAVING The SP2 has 4 levels of power saving selected by PS0 & PS1 in SWITCHES. Power saving is achieved by shutting down the Transceiver and the SP2 for a period of time (OFF-TIME) when the SP2 is in the Idle state (i.e. nothing happening). During the OFF period current is reduced to the device leakage of <50 A typ. The SP2 will still respond immediately to a Host TX Request but cannot receive radio signals. After the programmed OFF-TIME the SP2 will wake itself up, turn the receiver on and listen for valid preamble. ON time = PWR->RX (EEPROM address 05h) + 2.5ms = 3.3ms (using SP2 Default values) If preamble is found the SP2 will stay ON and decode the packet, if not the SP2 will shut down for another OFF time period. Also see - WAKE-UP (address 02h of EEPROM) and paragraph 2.3.2 .
Radiometrix Ltd, SP2 data sheet
page 11
PS1 0 0 1 1
PS0 0 1 0 1
CONTINUOUS POWER SAVE SLEEP OFF
20mA (no power saving) programmable sleeptime * < 460A (fixed off time of 181ms) < 50A Transceiver is off ( reset or TXR to wake-up)
* Sleeptime programmable in EEPROM address 03h. value 00 01 02 03 off -time 22ms 45ms 90ms 181ms Average current 2.95 mA 1.60 mA 0.85 mA 0.46 mA EEPROM default values.
The supply current's quoted above are typical for a BiM2 + SP2 using the 3.2 HTO & RTO - INTERFACE TIME-OUT Both the Host and the Radio interfaces can 'hang' the SP2 while it waits for an external event. Under error conditions the SP2 will reset itself if the appropriate HTO or RTO switch is set.
RTO RADIO TIME OUT. 0 no time out 1 Time-Out and reset if > 2.9s of plain preamble detected. (note. valid extended preamble used for wake-ups will not cause a Time-Out to be detected) HTO HOST TIME OUT 0 no time out 1 Time-Out and reset if Host fails to reply to any request or handshake within 2.9s 3.3 WE - EEPROM WRITE ENABLE This bit protects the EEPROM from accidental writes, it must be set to 1 prior to each byte write to the EEPROM (addresses 01h to 3Fh). This bit will be cleared by the SP2 after each byte write. 3.4 ST - RESERVED Do not use. Reserved for future use. 3.5 LBT & DBT - COLLISION AVOIDANCE Listen Before Transmit, LBT, and Delay Before Transmit, DBT determine what collision avoidance the SP2 will take before each transmission. LBT 0 0 DBT 0 1 Function Immediate TX, no channel check Fixed delay TX, no channel check (time slots) This is useful for rapid polling of up to 255 units by a master station. SLOTS is set to the units ID number, the packet size, preamble length and change over delay must be the same for all units being polled. see - EEPROM parameters Immediate TX, if channel is clear The receiver is turned on and the channel checked for preamble or data. The SP2 will only go to transmit when the channel is clear. Random delay TX, if channel is clear This mode is useful in random access networks where there is a high statistical probability that more than 2 SP2s could be attempting to transmit at the same time. The receiver is turned on and the channel is checked for preamble or data. If the channel is clear the SP2 will go to transmit, if the channel is busy the SP2 will delay by a random time (setable by TX-BACK-OFF in EEPROM) then try again for a clear channel.
page 12
1 1
0 1
Radiometrix Ltd, SP2 data sheet
4.0 USER CONFIGURABLE PARAMETERS IN EEPROM The EEPROM has address range 01h - 3Fh (63 Bytes) The first 15 BYTES (8 are defined) contain parameters used to control the SP2.
00H (RAM)
PS1 PS0 HTO RTO WE ST LBT DBT Def.=8C Def.=54 Def.=FF Def.=03 Def.=2C Def.=08 Def.=03 Def.=00 Def.=00 Def.=FF Def.=FF
# Preamble Cycles Wake Up Time Sleep Time TX RX Delay
(01-FF) (01-FF) (00-07) (01-FF)
01H 02H 03H 04H 05H 06H 07H 08H
RPC registors EEPROM
RX Power Up Time (01-FF) TX back-off Time Slot Number
(00-07) (00-FF)
Reset State Switches Reserved Reserved
Def.=FF
Reserved EEPROM
0EH 0FH
Reserved Reserved User EEPROM User EEPROM User EEPROM User EEPROM User EEPROM User EEPROM User EEPROM
figure 12: SP2's EEPROM memory Radiometrix Ltd, SP2 data sheet
Def.=FF Def.=FF
10H
Def.=FF Def.=FF
11H
3CH
Def.=FF Def.=FF Def.=FF Def.=FF
User EEPROM
3DH 3EH 3FH
page 13
PREAMBLE address default formula valid range
Number of "01" preamble cycles on TX packets One '01' cycle takes 12.5s @ 160kbit/s 01 8C Preamble time = PREAMBLE * 0.0125ms 01 to FF
WAKE-UP
address default formula valid range
Number of units of 'WAKE-UP PREAMBLE + PLEASE HOLD LINE' To be sent as extended preamble to wake-up a remote SP2 in power save mode. WAKE-UP should be set to approx. 1.5 times the remote units OFF Time 02 53 Wake-up message = WAKE-UP * 3.24ms 01 to FF
SLEEP-TIME address default formula valid range
Power Save 'Off' Time (RC controlled) The OFF time is controlled by an RC oscillator in the SP2 which has a wide tolerance of +/- 30% 03 03 Off-time = 22 * 2SLEEP-TIME ms 00 to 03
RX TX address default formula valid range
TX RX change over delay in units of 100s 04 2C Delay = RX TX * 12.5s 01 to FF
PWR RX address: default: formula: valid range:
RX stabilisation delay in units of 100s 05 8 Delay = PWR RX * 0.1 ms 01 to FF
TX-BACK-OFF address default formula valid range
Maximum TX Back-off delay in units of 1ms Used when LBT=1 & DBT=1 06 03 maximum delay = (2 TX-BACK-OFF - 1) ms 00 to 07 04= 0 - 31 ms 00 = 0 - 1 ms 05 = 0 - 63 ms 01 = 0 - 3 ms 06 = 0 - 160 ms 02 = 0 - 7 ms 07 = 0 - 255 ms 03 = 0 - 15 ms
Radiometrix Ltd, SP2 data sheet
page 14
TX-SLOT address default formula valid range
0 - 255 slot number for delayed (polled) TX Delayed TX in packet units, used when LBT=0 & DBT=1 07 00 delay = TX-Slot * (Preamble*0.0125 + Tpacket + 3*RX TX + 0.5) ms where Tpacket = (Number of bytes in packet +2) * 0.075ms 00 to FF
RESET STATE address default
RESET STATE OF SWITCHES The contents of this address are copied into SWITCHES on SP2 reset, power-up or watchdog Time-Out 08 00
Address 09 to 0F are reserved for future and should not be used by the HOST EEPROM Addresses 10 TO 3F (48 BYTES) are free for HOST use as general storage.
5.0 DIAGNOSTIC / DEBUG TEST MODES These special test modes are useful for system testing and debugging To select these modes the SP2 should be released from reset with the TXR line held low, normal SP2 operation will resume when the TXR is set high, i.e. TXR should be held low while in these test modes.
figure 13: diagnostic mode selection timing diagram
note:
For normal operation of the SP2 the TXR line must be held high for either 1ms after a reset pulse or 100ms after a power up.
There are 8 test modes which are selected by a binary code applied to the SP2's data bus. A 4 bit DIL switch or rotary HEX switch connected between the data bus and 0V will select the modes (the SP2 has weak internal pull-up's). Alternatively the HOST may select the test modes by holding TXR low, resetting the SP2 and driving the required test mode code onto the data bus. note: The SP2 continuously monitors the mode selected i.e.. a reset is not required on mode changes.
Radiometrix Ltd, SP2 data sheet
page 15
In some modes the RXR output from the SP2 is driven low to indicate 'pass' or 'OK'. An LED + 1k from RXR to 5V is recommended. Mode 0 1 2 3 4 5 6 7 Name RX-ON RX-PULSE TX-ON-PRE TX-ON-SQ TX-ON-255 TX-PULSE ECHO RADAR Function PREAMBLE DETECTOR ON (RXR RED LED = preamble detected) 10ms ON : 10ms OFF, PREAMBLE DETECTOR ON RXR LED Preamble Modulation - send continuous preamble 100Hz SQUARE WAVE MOD - TX testing on spec. Analyser random 160kbit/s data for EYE DIAGRAM tests, sync's on RXR PREAMBLE BURSTS (EE 01 SETTING): 10ms OFF, RX lock in tests TRANSPONDER MODE, re-transmit any valid packets received Send ASCII TEST PACKET "RADIOMETRIX" and listen for echo
Modes 6 & 7 are particularly useful for software debugging and range testing.
Antenna
+5V +5V OK D0 D1 D2 D3 TXA TXR 1k
Test Mode Select Switches
470
Signal
470
TX RX
470
SP2
RX select TX select SIGNAL
Reset RXA 0V RXR
figure 14: stand-alone diagnostic mode
D3 0 0 0 0 0 0 0 0
D2 0 0 0 0 1 1 1 1
D1 0 0 1 1 0 0 1 1
D0 0 1 0 1 0 1 0 1
Mode 0 1 2 3 4 5 6 7
Radiometrix Ltd, SP2 data sheet
page 16
APPENDIX - A A Detailed look at the SP2's transceiver interface The SP2 interfaces to the transceiver using 4 lines :TX TXD RX RXD output output output input Active low enable for the transmitter. Serial data to be sent. Active low enable for the receiver. Received serial data.
note 1 All lines are 5V CMOS levels note 2 There is no requirement for a carrier/signal detect signal from the transceiver nor for the RXD output to be muted when no signal is present. The enable lines - TX & RX These normally high, active low lines are used to control the transceiver. The SP2 is a half-duplex controller thus in normal operation the transceiver is either transmitting or receiving or off. Transmit Data - TXD TXD is the serial data to the transmitter, it is held low when the transmitter is not enabled. When the TX is enabled a synchronous 160kbit/s (6.25s/bit) serial code is present to modulate the transmitter. Receive Data - RXD RXD is a hi-impedance input which is fed with a 'squared-up' (5V logic level) signal from the receivers' data slicer. The SP2 contains a very selective, noise immune signal detector and therefor does not require that the RXD signal be muted in the absence of signal, i.e.. squared-up channel noise may be fed to the SP2 when no signal is present.
The SP2's Packet Encoder The packet is made-up of 4 parts: Preamble This is a simple 80kHz square wave, the number of cycles being programmed by address 01h of the EEPROM. The preamble has two functions, the initial portion it is used to allow the data slicer in a remote receiver to establish the correct slicing point (for the BiM2-433-160 this takes a maximum of 0.8ms), after the receiver has settled, the remaining portion is used by the receiving SP2 to positively identify and phase lock onto the incoming the signal (this requires 12 cycles of preamble). The preamble may extended to wake-up a remote SP2 in power saving mode. Frame sync A 7 bit Barker sequence is used to identify the start of the data. Alternatively if the transmitter is sending extended preamble (to wake a power saving remote SP2) a complimented 7 bit Barker sequence is sent every 256 preamble cycles as a 'Please Hold The Line' code. An 8th balancing bit is added after the Barker sequence.
Radiometrix Ltd, SP2 data sheet
page 17
Data Each byte in the SP2's buffer is expanded into a 12 bit symbol prior to sending. The symbol coding has the following properties :* Perfect 50:50 balance, i.e.. always 6 one's & 6 zero's * There are never more than 4 consecutive one's or zero's. This minimises the low frequency components in the code and allows fast settling times to be used for the receivers' data slicer. * Minimum Hamming distance = 2, i.e.. each code is different from any other code by a minimum of 2 bits, thus all odd number of bit errors will always be detected. * In general only 256 of 4096 (6.25%) possible codes are valid, i.e.. a 93.75 % probability of trapping a byte error. * Preamble and the Frame sync codes are not part of the symbol alphabet, a 'clash' signal will cause immediate termination of the current decode followed by an attempt to lock to the new signal. Check Sum Since the receiver checks each symbol for integrity, a simple 8 bit check sum is used to test for overall packet integrity. This is also coded into a 12 bit symbol prior to transmission.
Radiometrix Ltd, SP2 data sheet
page 18
The SP2's Packet Decoder Signal Decoding is in 4 stages :Search Initially the SP2's decoder searches the radio noise on the RXD line for the 80kHz preamble signal. The search is performed by a 16 times over-sampling detector which computes the spectral level of 80kHz in 192 samples of the RXD signal (156s window).If the level exceeds a pre-set threshold the decoder will attempt to decode a packet. Lock-in The same set of 192 samples are used to compute the phase of the incoming preamble and synchronise the internal recovery clock to an accuracy of +/- 2s. The recovery clock samples the mid point of each incoming data bit and shifts the samples trough an 8 bit serial comparator. The comparator searches the data on a bit by bit basis for the frame sync byte. While the search is in progress, the decode will abort if the preamble fails to maintain a certain level of integrity. If the comparator finds the 'please hold the line' code used during extended wake-up preamble a phase re-lock is triggered to ensure accurate phase tracking until the actual packet arrives. When the frame sync is detected the decoder attains full synchronisation and will move to the Decode state. Decode Data is now taken in 12 bits at a time (one symbol), decoded into the original byte and placed in the receive buffer. The symbol decoder verifies each received symbol as valid (only 256 out of a possible 4096 are valid) and will immediately abort the decode on a symbol failure. The first byte contains the byte count and is used to determine the end of message. Check Sum The last byte is the received check sum, this is verified against a locally generated sum of all the received bytes in the packet. If it matches the packet is valid and RXR line will be pulled low to inform the Host that a packet awaits uploading.
Notes on error handling The SP2's' decoder is deliberately non bit error tolerant, i.e.. no attempt is made to repair corrupt data bits. All of the redundancy in the code is directed towards error checking. For an FM radio link using short packet lengths, e.g. SP2 + BiM2 , packets are either 100% or so grossly corrupt as to be unrecoverable. By the same reasoning, the Host is not informed when the SP2 decoder aborts a packet decode since corrupt information is of little value. A packet acknowledge Time-Out and re-transmission is the preferred strategy for error handling.
Radiometrix Ltd, SP2 data sheet
page 19
APPENDIX - B Example SP2 driver subroutines for Arizona PIC16C73
D3 D2 D1 D0
PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 / IRQ
SP2
TXA TXR RXA RXR
figure 15: SP2 to PIC -C interface
HOST PIC
Packet transfers to / from the SP2 are best handled in the host by two subroutines :- OUT_BYTE & IN_BYTE Additionally LISTEN_BUS is called on completion of a packet transfer to the SP2 to return the data bus to inputs (default state).
;--------------------------------------------------------------------; ; ; SP2 DRIVERS ; ; ;-------------------------------------------------------------------; ; HOST PROCESSOR PIC16C73 or similar ; SP2 EQU 06 ;USE PORT B ON PIC ; ; ** Bit assignments for SP2 PORT ** ; D7 EQU 7 ;Bi-Dir D6 EQU 6 ;Bi-Dir D5 EQU 5 ;Bi-Dir D4 EQU 4 ;Bi-Dir TXA EQU 3 ;INPUT TXR EQU 2 ;OUTPUT RXA EQU 1 ;OUTPUT RXR EQU 0 ;INPUT ON RB0, CAN BE CONFIGURED AS AN INTERRUPT ; SP2_DDR 86 ;Data direction register for port B (SP2) ; ;This register is in BANK 1 of the register file ; ;-------------------------------------------------------------------; W EQU 0 ;Accumulator as Destination F EQU 1 ;Register File as Destination INDF EQU 00 ;INDirect File register
Radiometrix Ltd, SP2 data sheet
page 20
;SUBROUTINE ; ;IN_BYTE ; ; ; ; ; ; : ; ; IN_BYTE ; ; ;
IN_BYTE READ A BYTE FROM THE SP2 INTO FILE POINTED TO BY FSR W IS DESTROYED NOTE THIS ROUTINE WILL HANG THE HOST UNTIL THE HOST COMPLETES THE TRANSFER OF TWO NIBBLES THIS SUBROUTINE CAN BE CONFIGURES TO RUN AS PART OF ANINTERRUPT HANDLER IF THE :RXR LINE FROM THE SP2 IS USED TO TRIGGER A HOST INTERRUPT BTFSC SP2,RXR GOTO IN-BYTE ;WE GOT A RX REQUEST YET? ;NO , SO LOOP BACK AND WAIT READ THE LS NIBBLE FROM THE SP2 BCF SP2,RXA ;ACCEPT THE REQUEST (SET ACCEPT LOW) ;HAS REQUEST GONE UP? data is present ;LOOP BACK TILL IT DOES ;TIME DELAY TO ENSURE DATA STABLE ;BEFORE READ
; AWAITDATA ;
BTFSS SP2,RXR GOTO AWAITDATA NOP
; ;
MOVF SP2,W ;READ THE LS NIBBLE FROM THE BUS BSF SP2,RXA ;TELL SP2 WE GOT NIBBLE (ACCEPT = 1) ANDLW B'11110000' ;JUST THE DATA ; MOVWF INDF ; SWAPF INDF ; ; ; ; INNIBBLE ; BCF ; AWAITD1 ; NOP ; ; ;TIME DELAY TO ENSURE DATA STABLE ;BEFORE READ SP2,RXA ;ACCEPT REQUEST (SET ACCEPT LOW) ;HAS REQUEST GONE UP? data is present ;LOOP BACK TILL IT DOES BTFSS SP2,RXR GOTO AWAITD1 ;SAVE LS NIBBLE IN TARGET FILE (VIA ;FSR) ;RIGHT JUSTIFY LS NIBBLE
NOW GET MS NIBBLE FROM THE SP2 BTFSC SP2,RXR GOTO INNIBBLE ;WE GOT NEXT RX REQUEST YET ? ;NO , SO LOOP BACK AND WAIT
MOVF SP2,W ;READ THE MS NIBBLE FROM THE BUS BSF SP2,RXA ;TELL SP2 WE GOT NIBBLE (ACCEPT=1) ANDLW B'11110000' ;JUST THE DATA ; IORWF INDF ; ; ; A BYTE HAS BEEN READ FROM THE SP2 INTO ADDRESS POINTED AT BY FSR ; ;-------------------------------------------------------------------; ;COMBINE MS NIBBLE WITH LS NIBBLE ;ALREADY ;IN THE FILE (VIA FSR)RETURN
Radiometrix Ltd, SP2 data sheet
page 21
;SUBROUTINE ;OUT_BYTE ; ; ; ; ; ; ; ; ; OUT_BYTE ;
OUT_BYTE WRITE A BYTE FROM FILE POINTED TO BY FSR TO SP2 W IS DESTROYED NOTE THIS ROUTINE WILL HANG THE HOST UNTIL THE SP2 ACCEPTS THE TRANSFER OF TWO NIBBLES
WARNING OUT_BYTE WILL SET THE DATA BUS TO DRIVE AFTER ; DETECTING A TXA FROM THE SP2. THE CALLING ROUTINE MUST SET 4 DATA LINES BACK TO I/P ON COMPLETION OF PACKET TRANSFER ; (i.e. call LISTENBUS) ;GET LS NIBBLE FROM FILE (VIA FSR) INTO ;BITS 4 to 7 of W ANDLW B'11110000' ;JUST THE NIBBLE IORLW B'00000010' ;SET TXR LOW, LEAVE RXA HIGH MOVWF SP2 ;SET TXR LOW, OUTPUT NIBBLE BTFSC SP2,TXA GOTO WACCEPT ;WE GOT A TX ACCEPT BACK YET? ;NO, SO LOOP BACK AND WAIT SWAPF INDF,W
; WACCEPT
; ;WE GOT ACCEPTANCE SO IT'S OK TO DRIVE BUS ; BSF STATUS,RP0 ;SELECT PAGE 1 MOVLW B'00001001' ;DRIVE BUS MOVWF SP2_DDR BCF STATUS,RP0 ;SELECT PAGE 0 BUS IS NOW DRIVING ; BSF SP2,TXR ;REMOVE REQUEST, DATA IS ON BUS WDUN BTFSS SP2,TXA ;HAS DATA BEEN READ? GOTO WDUN ;WAIT TILL SP2 REMOVES ACCEPT ; ;LS NIBBLE OF (FSR) IS SENT , NOW DO MS NIBBLE ; MOVF INDF,W ;GET MS NIBBLE FROM FILE (VIA FSR) ; ANDLW B'11110000' ;JUST THE MS NIBBLE IORLW B'00000010' ;SET TXR LOW (BIT 2), RXA STAYS HIGH MOVWF SP2 ;OUTPUT NIBBLE + TXR LOW ; WACCEPT1 BTFSC SP2,TXA ;WE GOT A TX ACCEPT BACK YET? GOTO WACCEPT1 ;NO, SO LOOP BACK AND WAIT ; BSF SP2,TXR ;REMOVE REQUEST, DATA IS ON BUS ; WDUN1 BTFSS SP2,TXA ;HAS DATA BEEN READ? GOTO WDUN1 ;WAIT TILL SP2 REMOVES ACCEPT ; RETURN ; ; BYTE IS SENT TO SP2 ;-------------------------------------------------------------------; SUBROUTINE - LISTEN_BUS , SET DATA BUS TO INPUT ; LISTEN_BUS BSF STATUS,RP0 ;SELECT PAGE 1 MOVLW B'11111001' ;BUS TO INPUT MOVWF SP2_DDR BCF STATUS,RP0 ;SELECT PAGE 0 RETURN ; BUS IS LISTENING TO SP2 ;--------------------------------------------------------------------
Radiometrix Ltd, SP2 data sheet
page 22
APPENDIX - C Example SP2 driver subroutines for Motorola 68HC11
D0 D1 D2 D3 TXA TXR RXA RXR
PC3 PC2 PC1 PC0 PC7 PC6 PC5 PC4 IRQ
HOST HC11
figure 16: SP2 to HC11 -C interface
Packet transfers to / from the SP2 are best handled in the host by two subroutines :- OUT_BYTE & IN_BYTE Additionally LISTEN_BUS is called on completion of a packet transfer to the SP2 to return the data bus to inputs (default state).
********************************************************************* * * CPU REGISTER EQUATIONS ********************************************************************* * *This section contains a few of the necessary register equations used *in the example subroutines. PORTC DDRC * * * * * * * * Port-C7 Port-C6 Port-C5 Port-C4 Port-C3 Port-C2 Port-C1 Port-C0 = = = = = = = = EQU EQU $1003 $1007 ;ADDRESS OF SP2 PORT ;DATA DIRECTION REGISTER PORT-C
*
RX-accept OUTPUT RX-request INPUT TX-accept INPUT TX-request OUTPUT SP2 data bit-3 SP2 data bit-2 SP2 data bit-1 SP2 data bit-0
Radiometrix Ltd, SP2 data sheet
page 23
********************************************************************** * RANDOM ACCESS MEMORY ********************************************************************* ORG RAM ;RAM AREA DEFINITION SAVE_1 SAVE_X RMB RMB 1 2 ;TEMPORARILY SAVE LOCATION 1 ;HOLDS FILES POINTER FOR IN_BYTE
*
********************************************************************** * SUBROUTINE: IN_BYTE *********************************************************************
*
*This subroutine is designed to be called by an interrupt handler to *read a byte from the SP2 into a file pointed at by X * *Note: The interrupt handler should load the X register with the file address before calling this subroutine. IN_BYTE WAIT_RQ IN_LP WAIT_RQ1 DAT_IN CLR LDAB STAB LDAB BITB BNE LDAB ANDB STAB LDAB BITB BEQ LDAA ANDA LDAB ORAB STAB STAA LDAB BITB BNE LDAB ANDB STAB LDAB BITB BEQ LDAA ANDA ASLA ASLA ASLA ASLA LDAB ORAB STAB ORAA STAA STAA SAVE_1 #%10010000 DDRC PORTC #%01000000 WAIT_RQ PORTC #%01111111 PORTC PORTC #%01000000 WAIT_RQ1 PORTC #%00001111 PORTC #%10000000 PORTC SAVE_1 PORTC #%01000000 WAIT_RQ2 PORTC #%01111111 PORTC PORTC #%01000000 WAIT_RQ3 PORTC #%00001111 ;CLEAR TEMPORARILY MEMORY LOCATION ;SET CORRECT DATA DIRECTION i/p ;WAIT FOR RX-REQUEST TO GO LOW ; ;FORCE RX-ACCEPT TO GO LOW ;WAIT FOR RX-REQUEST TO GO HIGH ;READ IN DATA ;FORCE ACCEPT HIGH ;SAVE NIBBLE TO TEMP LOCATION ;WAIT FOR RX-REQUEST TO GO LOW
WAIT_RQ2 IN_LP2 WAIT_RQ3 DAT_IN2
;FORCE RX-ACCEPT TO GO LOW ;WAIT FOR RX-REQUEST TO GO HIGH ;READ IN DATA
READ_END
PORTC #%10000000 PORTC SAVE_1 SAVE_1 0,X
;FORCE ACCEPT HIGH ;PUT NIBBLES TOGETHER IN TEMP LOCATION ;SAVE DATA TO POINTER ADDRESS
Radiometrix Ltd, SP2 data sheet
page 24
********************************************************************** * SUBROUTINE: OUT_BYTE ********************************************************************** *This subroutine will output of one byte to the SP2. Register X *should contain the address of the memory location of the byte to be *send. *Note: that register X has to be pre-loaded before entering this * subroutine. OUT_BYTE LDAA ANDA LDAB ANDB STAB LDAB BITB BNE LDAB STAB ORAA STAA LDAB ORAB STAB LDAB BITB BEQ LDAA LSRA LSRA LSRA LSRA LDAB ANDB STAB LDAB BITB BNE ORAA STAA LDAB ORAB STAB LDAB BITB BEQ RTS 0,X #%00001111 PORTC #%11101111 PORTC PORTC #%00100000 WAIT_ACC #%10011111 DDRC #%10000000 PORTC PORTC #%00010000 PORTC PORTC #%00100000 WAIT_REQ 0,X ;GET THE BYTE TO SEND TO SP2 ;PREPARE LEAST SIGNIFICANT NIBBLE ;FORCE TX-REQUEST LOW ;WAIT FOR TX ACCEPT TO GO LOW ;CHANGE DATA DDRC TO OUTPUT ;TURN BUS DRIVE ON ;MAKE SURE RXA IS HIGH ;OUTPUT DATA ;FORCE TX-REQUEST HIGH ;WAIT FOR TX_ACCEPT TO GO HIGH ;PREPARE MOST SIGNIFICANT NIBBLE ;BY SWAPPING THE LS- & MS-NIBBLE
WAIT_ACC
WAIT_REQ
WAIT_TXA1
WAIT_TXR1
PORTC #%11101111 PORTC PORTC #%00100000 WAIT_TXA1 #%10000000 PORTC PORTC #%00010000 PORTC PORTC #%00100000 WAIT_TXR1
;FORCE TX-REQUEST LOW ;WAIT FOR TX-ACCEPT TO GO LOW
;OUTPUT DATA ;FORCE TX-REQUEST HIGH ;WAIT FOR TX_ACCEPT TO GO HIGH
********************************************************************** * SUBROUTINE: LISTEN TO BUS ********************************************************************* * *This will turn the SP2 host to listen mode again and should *be called when the whole packet has been sent to the SP2 * LISTEN_BUS LDAA #%10010000 ;PUT PORT BACK TO LISTEN STAA DDRC RTS *********************************************************************
Radiometrix Ltd, SP2 data sheet
page 25
APPENDIX - D The FRPC as a control IC
Clock frequency All timings within the SP2 (except sleep) are determined by the clock frequency. The standard frequency is 20.48MHz and all timings unless explicitly stated otherwise, assume this clock frequency.
The data rate =
f clk bits/s 128
( i.e. 160kbit/s for Fclk=20.48MHz)
Clock accuracy The SP2 uses synchronous data transmission and requires an accurate reference clock. In the worst case , max. preamble and packet length, the allowable bit rate timing error between transmitter and receiver is 0.2 bits in 1000 bits, i.e. +/-200ppm total or +/-100ppm at each end.
Bit Time =
128 Hz f xtal
i.e. 20.48MHz crystal = 6.25s PER BIT
Accuracy, temp drifts MUST KEEP X-TAL +/- 100ppm of nominal
Radiometrix Ltd, SP2 data sheet
page 26
Hartcran House 231 Kenton Lane Harrow, Middlesex HA3 8RP ENGLAND Tel: +44 (0) 20 8909 9595 Fax: +44 (0) 20 8909 2233 sales@radiometrix.com www.radiometrix.com Copyright notice
This product data sheet is the original work and copyrighted property of Radiometrix Ltd. Reproduction in whole or in part must give clear acknowledgement to the copyright owner.
Radiometrix Ltd
Limitation of liability
The information furnished by Radiometrix Ltd is believed to be accurate and reliable. Radiometrix Ltd reserves the right to make changes or improvements in the design, specification or manufacture of its subassembly products without notice. Radiometrix Ltd does not assume any liability arising from the application or use of any product or circuit described herein, nor for any infringements of patents or other rights of third parties which may result from the use of its products. This data sheet neither states nor implies warranty of any kind, including fitness for any particular application. These radio devices may be subject to radio interference and may not function as intended if interference is present. We do NOT recommend their use for life critical applications. The Intrastat commodity code for all our modules is: 8542 6000.
R&TTE Directive
After 7 April 2001 the manufacturer can only place finished product on the market under the provisions of the R&TTE Directive. Equipment within the scope of the R&TTE Directive may demonstrate compliance to the essential requirements specified in Article 3 of the Directive, as appropriate to the particular equipment. Further details are available on The Office of Communications (Ofcom) web site: http://www.ofcom.org.uk/radiocomms/ifi/licensing/licensing_policy_manual/ Information Requests Ofcom Riverside House 2a Southwark Bridge Road London SE1 9HA Tel: +44 (0)845 456 3000 or 020 7981 3040 Fax: +44 (0)20 7783 4033 information.requests@ofcom.org.uk European Radiocommunications Office (ERO) Peblingehus Nansensgade 19 DK 1366 Copenhagen Tel. +45 33896300 Fax +45 33896330 ero@ero.dk www.ero.dk


▲Up To Search▲   

 
Price & Availability of SP2-433-160

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X